package cn.apigateway.Controller;/**
 * @author ：liuhm
 * @date ：Created in 2019/3/26 16:12
 */

import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName：TestController
 * @Description: TODO
 * @Author: liuhm
 * @Date: 2019/3/26 16:12
 */
@RestController
@RequestMapping
@RefreshScope
public class TestController {

    @Value("${env}")
    private String text;

    @GetMapping("/test")
    public String test(){
        return text;
    }
}
